Repository navigation
kboot: disable WFI/WFIT where it loses state (from AsahiLinux/m1n1) - #18
Open
hishamMounir wants to merge 2 commits into
Open
hishamMounir wants to merge 2 commits into
hishamMounir wants to merge 2 commits into
Conversation
Signed-off-by: Yureka <yureka@cyberchaos.dev> (cherry picked from commit 3a69c73f59332b7b617835fd9a1c49dc89edcfd2)
Signed-off-by: Yureka <yureka@cyberchaos.dev> (cherry picked from commit 9095a5ee70bf7ad970d9759ebc6fb6842b7def32)
Member
|
Squash this into one commit and then this can be merged |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This ports two AsahiLinux/m1n1 commits by Yureka, unchanged. The original authorship is kept, and
-xrecords where each came from.kboot: disable wfi/wfit if wfi loses state(AsahiLinux/m1n1 3a69c73f)kboot: fix inverted wfi bootargs condition(AsahiLinux/m1n1 9095a5ee)On locked M4-class and later machines, a CPU loses architectural state in WFI and WFIT. These commits make kboot append
idle=nop arm64.nowfxtto the kernel command line on those machines, so Linux avoids both in its idle loop and delay function. Gravity's kernel already has thearm64.nowfxtoverride, but nothing passes it today.Why it matters on the M5 (J704, T8142)
Tested on a J704 by chainloading this tree into RAM and booting a Linux 7.1 Asahi kernel with the daily DT and root on the SSD.
Without these commits, booting Gravity's bootloader with the T8142 series:
With the two arguments passed by hand, every tree booted and stayed up for the 5-minute check.
With these commits (on top of the T8142 core series and #14, nothing passed by hand):
FDT: appending to bootargs: idle=nop arm64.nowfxt.Testing
main.🤖 Generated with Claude Code